package com.yubest.demo.controller;

import com.yubest.demo.dto.DemoRespDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author hweiyu
 * @Description
 * @Date 2021/3/1 14:01
 */
@RestController
public class DemoController {

    @GetMapping(value = "/test")
    public DemoRespDTO test() {
        long t = Long.MAX_VALUE;
        return new DemoRespDTO()
                .setA(t)
                .setB(t)
                .setC(String.valueOf(t))
                .setT(System.currentTimeMillis());
    }

}
